﻿using System.Collections.Generic;
using BO;
using Model;

namespace Controller
{
    /// <summary>
    /// Summary description for VYC06Controller
    /// </summary>
    public class VYC06Controller
    {
        private static VYC06BO _vyc06Bo;
        public VYC06Controller()
        {            
            _vyc06Bo = new VYC06BO();
        }

        public List<ModelVYC06> GetAllList()
        {
            return _vyc06Bo.GetAllList();
        }

        public int AddData(ModelVYC06 model)
        {
            return _vyc06Bo.AddData(model);
        }

        public int EditData(ModelVYC06 model)
        {
            return _vyc06Bo.EditData(model);
        }

        public int UpdateView(int id, int luotxem)
        {
            return _vyc06Bo.UpdateView(id, luotxem);
        }

        public int DeleteData(ModelVYC06 model)
        {
            return _vyc06Bo.DeleteData(model);
        }
        public List<ModelVYC06> GetById(int id)
        {
            return _vyc06Bo.GetById(id);
        }
        public int RemovePanorama(ModelVYC06 model)
        {
            return _vyc06Bo.RemovePanorama(model);
        }
        public List<ModelVYC06> GetListPanoramaNho(int hienthi, int trangthai)
        {
            return _vyc06Bo.GetListPanoramaNho(hienthi, trangthai);
        }
        public List<ModelVYC06> GetByUniqueId(string uniqueid, int trangthai)
        {
            return _vyc06Bo.GetByUniqueId(uniqueid, trangthai);
        }
        public List<ModelVYC06> GetByView()
        {
            return _vyc06Bo.GetByView();
        }
        public List<ModelVYC06> GetByNewest()
        {
            return _vyc06Bo.GetByNewest();
        }
        public List<ModelVYC06> GetByLoaiCm(int idLoaiCM, int trangthai)
        {
            return _vyc06Bo.GetByLoaiCm(idLoaiCM, trangthai);
        }
        public List<ModelVYC06> GetBySubLoaiCm(int idSubLoaiCM, int trangthai)
        {
            return _vyc06Bo.GetBySubLoaiCm(idSubLoaiCM, trangthai);
        }
        public List<ModelVYC06> GetAllByView()
        {
            return _vyc06Bo.GetAllByView();
        }

        public List<ModelVYC06> GetBySubLoaiCmMoinhat(int idSubLoaiCM, int trangthai)
        {
            return _vyc06Bo.GetBySubLoaiCmMoinhat(idSubLoaiCM, trangthai);
        }
        public List<ModelVYC06> GetBySubLoaiCmNoibat(int idSubLoaiCM, int trangthai)
        {
            return _vyc06Bo.GetBySubLoaiCmNoibat(idSubLoaiCM, trangthai);
        }
        public List<ModelVYC06> GetLichkhoihanh(int idSubLoaiCM, string tieude, int trangthai)
        {
            return _vyc06Bo.GetLichkhoihanh(idSubLoaiCM, tieude, trangthai);
        }
        public List<ModelVYC06> GetByTag(string key, int trangthai)
        {
            key = key.Replace("-", " ");
            return _vyc06Bo.GetByTag(key, trangthai);
        }
    }
}